<div id="content-header">
<h1>Edit User</h1>
</div>
<div id="breadcrumb">
<a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-th-list"></i> Home</a>
<a href="<?php echo $this->Html->url(array('plugin'=>'user','controller' => 'user', 'action' => 'admin_index'));?>" class="current">List User</a>
</div>
<div class="container-fluid">
<div class="row-fluid">
</div>
<div class="row-fluid">
	<div class="span12">
    <?php
    echo $this->Form->create('User', array('id' => 'paginate','class'=>'form-horizontal' ,'action' => 'edit', 'url' => $this->request->here(false), 'type' => 'post',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));
    echo $this->element('toolbar');
    ?>									
		<div class="widget-box">
<?php 
    $fieldsets['fullname'] = $this->Form->input('fullname', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'text'));
        
    $fieldsets['birthday'] = $this->Form->input('birthday', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'date'));
    $fieldsets['phone'] = $this->Form->input('phone', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'text'));
    $fieldsets['username'] = $this->Form->input('username', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'text'));   
    $fieldsets['email'] = $this->Form->input('email', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'text'));   
    $fieldsets['password'] = $this->Form->input('password', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'password',
        'value' => ''));  

    $fieldsets['re_password'] = $this->Form->input('re_password', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'password'));
    $fieldsets['enabled'] = $this->Form->input('enabled', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'type' => 'checkbox'));  
    $fieldsets['role_id'] = $this->Form->input('Role', array(
        'label' => array('class' => 'control-label'),
        'between' => '<div class="controls">',
        'div' => array('class' => 'control-group'),
        'after' => '</div>',
        'multiple' => 'checkbox',
        'options' => $roles,
        'type' => 'select'));              
                        

?>        
        
    <?php
    echo $this->Layout->form($_layouts, $fieldsets);
    ?>
		</div>	
    <?php
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>        								
	</div>	
</div>